import { instance } from "./request";

//发货地址列表
export const getAddressList = (data) => {
  return instance({
    url: "/Address/addressList",
    method: "post",
    data,
  });
};

//添加发货地址
export const addDeliverAdd = (data) => {
  return instance({
    url: "/Address/deliverAdd",
    method: "post",
    data,
  });
};
//修改发货地址
export const deliverUpdate = (data) => {
  return instance({
    url: "/Address/deliverUpdate",
    method: "post",
    data,
  });
};

//删除地址
export const deleteAddress = (data) => {
  return instance({
    url: "/Address/delete",
    method: "post",
    data,
  });
};

//修改默认地址
export const makeDefault = (data) => {
  return instance({
    url: "/Address/makeDefault",
    method: "post",
    data,
  });
};
